# -*- coding:utf-8 -*-
# @File       :   handle_random.py
# @Author     :   LINING
# @Time       :   2024/7/22 14:30
# @Description : 随机函数
import random
from Handle.handle_log import log


def get_phone():
    """
    随机手机号
    :return:
    """
    phone_start = random.choice(['182', '175', '137', '151', '176', '138', '136', '191', '152'])
    phone_end = ''.join(random.sample([str(x) for x in range(0, 10)], 8))
    phone = f'{phone_start}{phone_end}'
    log.log_info(f'随机手机号：{phone}')
    return phone

